/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * laser_entradas_detalle.java
 *
 * Created on 26/10/2011, 12:31:53 PM
 */

package sie_invdis;


import java.sql.*;
import javax.swing.*;
import java.awt.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Calendar;
import java.text.*;
import java.text.ParseException;
/**
 *
 * @author Michelle
 */
public class laser_entradas_detalle extends javax.swing.JFrame {

    private javax.swing.table.DefaultTableModel jtable_modelo;
    private javax.swing.table.DefaultTableModel jtable_modelo_exportacion;

    private int buscamp=1;

    private SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
    private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
    //se crea intancia de la clase conexion
       bd_conexion x = new bd_conexion() ;
       //se creaa la variable resultset
       ResultSet rs = null;
    /** Creates new form laser_entradas_detalle */
    public laser_entradas_detalle() {
        initComponents();
    }
public laser_entradas_detalle(String folio) {
    this.iniciar_modelo_de_tabla();
    this.iniciar_modelo_detallexportacion();
        initComponents();
        this.carga_datos(1, folio);
        this.cargar_datos_detalle(1, folio);

        jtb_insumos.getColumnModel().getColumn(0).setPreferredWidth(60);//status
        jtb_insumos.getColumnModel().getColumn(1).setPreferredWidth(150);//Folio
        jtb_insumos.getColumnModel().getColumn(2).setPreferredWidth(30);//status
        jtb_insumos.getColumnModel().getColumn(3).setPreferredWidth(50);//doc ant.
        jtb_insumos.getColumnModel().getColumn(4).setPreferredWidth(30);//fecha
        jtb_insumos.getColumnModel().getColumn(5).setPreferredWidth(50);//fecha llega tienda
        jtb_insumos.getColumnModel().getColumn(6).setPreferredWidth(30);//f.recepcion
        jtb_insumos.getColumnModel().getColumn(7).setPreferredWidth(50);//Dias Trans.
        jtb_insumos.getColumnModel().getColumn(8).setPreferredWidth(80);//Cliente


    }

private void iniciar_modelo_de_tabla()
    {
        jtable_modelo=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo.addColumn("<html><b>Clave</b></html>");
        jtable_modelo.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo.addColumn("<html><b>Unidad</b></html>");
        jtable_modelo.addColumn("<html><b>Cant. Minu.</b></html>");
        jtable_modelo.addColumn("<html><b>Costo</b></html>");
        jtable_modelo.addColumn("<html><b>Importe</b></html>");
        jtable_modelo.addColumn("<html><b>Piezas</b></html>");
        jtable_modelo.addColumn("<html><b>Cost.X.Pieza</b></html>");
        jtable_modelo.addColumn("<html><b>Foto</b></html>");
        jtable_modelo.addColumn("<html><b>Obser.</b></html>");
        jtable_modelo.addColumn("<html><b>Material Usado</b></html>");
        jtable_modelo.addColumn("<html><b>Seg</b></html>");
    }
private void iniciar_modelo_detallexportacion()
    {
        jtable_modelo_exportacion=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_exportacion.addColumn("<html><b>Ancho Tela</b></html>");
        jtable_modelo_exportacion.addColumn("<html><b>Clave</b></html>");
        jtable_modelo_exportacion.addColumn("<html><b>Piezas</b></html>");
        jtable_modelo_exportacion.addColumn("<html><b>Ref.Cantidad</b></html>");
        jtable_modelo_exportacion.addColumn("<html><b>Ref.Tiempo</b></html>");
        jtable_modelo_exportacion.addColumn("<html><b>Precio</b></html>");
        jtable_modelo_exportacion.addColumn("<html><b>Observacion</b></html>");
    }
 private void carga_datos(int opbus,String tbusca)
    {
      String fechacat = "",fechallegatienda="",fechaentrega="";
      DecimalFormat miformat = new DecimalFormat("###,###,###,###");

      Object[] fnewRow = new Object[12];
       //invoco al metodo que trae el recordset de datos
        try
         {
            rs = x.sieuno_executediversosv2("select * from x1laser_artic_insumosentrada_doctos_cat("+opbus+",'"+tbusca+"') as (id integer,iddocumento character varying(12),idstatus smallint,idclavepersonal integer,doctoanterior character varying(12),doctosiguiente character varying(12),fechadocto date,fechaentrega date,fechavence date,impuestoporcen numeric,impuestoporcen2 numeric,descuentototal numeric,desfinanciero numeric,idcliente character varying(12),obserdocto character varying(80),usuario character varying(20),idtipomaquila smallint,idalmacen smallint,hora time,statusdescrip text,nombrecliente character varying(80),direccionclie character varying(50),describemaquila text,cantidad numeric,importecosto numeric,piezasproducidad numeric);",variables_global.getconexiongral());
            while (rs.next())
                {
                 this.jtf_tipomaquila.setText(rs.getString ("describemaquila"));
                 this.jtf_folio.setText(rs.getString ("iddocumento"));
                 this.jtf_status.setText(rs.getString ("idstatus")+":"+rs.getString ("statusdescrip"));
                 
                 this.jtf_fecha.setText(this.fechaeuropea(rs.getString ("fechadocto"))+":"+DiaSemana(this.fechaeuropea(rs.getString ("fechadocto")))+" "+rs.getString ("hora").substring(0, 5));
                 if(rs.getString("fechaentrega") != null)
                        {
                           fechallegatienda=rs.getString("fechaentrega")+":"+DiaSemana(rs.getString ("fechaentrega"));
                        }
                 this.jtf_fechaentrega.setText(fechallegatienda);

                 this.jtf_cliente.setText(rs.getString ("nombrecliente"));
                 this.jtf_cantidad.setText(miformat.format(rs.getFloat("cantidad")));
                 this.jtf_costototal.setText(miformat.format(rs.getFloat("importecosto")));
                 this.jtf_piezastotal.setText(miformat.format(rs.getFloat("piezasproducidad")));
                 this.jtf_observaciones.setText(rs.getString ("obserdocto"));


                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());

        }
        //this.registrosobtenidos();

      }
private void cargar_datos_detalle(int opcion,String docto)
    {
     String textohtml="";
     textohtml="<tr><th>Clave Articulo/Descripcion/foto</th><th>Clave Articulo/Descripcion/foto</th><th>Clave Articulo/Descripcion/foto</th><th>Clave Articulo/Descripcion/foto</th></tr>";
     int fila=0;
    String piezasxfilas[]=null,totfilass[]=null,alturausadas[]=null,puentedetexto="",puentefnece="";
    DecimalFormat miformat = new DecimalFormat("###,###,###,###.##");
    DecimalFormat miformatseg = new DecimalFormat("############");
    float piezasxfila=0,totfilas=0,alturausada=0,filaajuste=0,filasneceenteras=0,totalusado=0;
    rs = x.sieuno_executediversosv2("select * from x1distribucion_laser_artic_insumosentrada_doctos_detalle_importes("+opcion+",'"+docto+"') as (idreg integer,iddocto character varying(12),idarti character varying(16),cantidad numeric,factor numeric,cant_articulosal numeric,costo numeric,costoxpieza numeric,descuento1 numeric,descuento2 numeric,impuesto1 numeric,impuesto2 numeric,politicadesc smallint,tipocambio numeric,obserpartida character varying(60),piezasproduci numeric,importecosto numeric,describeinsumo character varying(80),unidadent character varying(3),stockmin numeric,stockmax numeric);",variables_global.getconexiongral());
       try
         {
            while (rs.next())
                {
                    filaajuste=0;
                    piezasxfila=rs.getFloat("factor")/rs.getFloat("stockmin");
                    puentedetexto=miformat.format(piezasxfila).replace(".", ":").replace(",", ":");
                    piezasxfilas=puentedetexto.split(":");
                    System.out.println(piezasxfila);
                    System.out.println(piezasxfilas[0]);
                    totfilas=rs.getFloat("piezasproduci")/Float.parseFloat(piezasxfilas[0]);
                    puentefnece=miformat.format(totfilas).replace(".", ":").replace(",", ":");
                    totfilass=puentefnece.split(":");
                    filasneceenteras=Float.parseFloat(totfilass[0]);
                    if (totfilas>filasneceenteras)
                            {
                                filaajuste=1;
                            }
                    puentefnece=miformat.format(Float.parseFloat(totfilass[0])+filaajuste);
                    //alturausada=totfilas*rs.getFloat("stockmax");
                    alturausada=Float.parseFloat(puentefnece)*rs.getFloat("stockmax");
                    jtable_modelo.addRow(new Object[]{rs.getString ("idarti"),rs.getString ("describeinsumo"),rs.getString("unidadent"),miformat.format(rs.getFloat("cantidad")),miformat.format(rs.getFloat("costo")),miformat.format(rs.getFloat("importecosto")),miformat.format(rs.getFloat("piezasproduci")),miformat.format(rs.getFloat("costoxpieza")),"",rs.getString("obserpartida"),miformat.format(alturausada)+"("+miformat.format(alturausada/100)+" Mts)",miformatseg.format((rs.getFloat("cantidad")/rs.getFloat("piezasproduci"))*60)});
                    jtable_modelo_exportacion.addRow(new Object[]{rs.getString ("factor"),rs.getString ("idarti"),rs.getString("piezasproduci"),"1",miformatseg.format((rs.getFloat("cantidad")/rs.getFloat("piezasproduci"))*60),miformat.format(rs.getFloat("costo")),rs.getString("obserpartida")});
                    totalusado+=alturausada;
                    if (fila<=0)
                        {
                            textohtml+= "<tr>";
                        }
                        fila++;
                        textohtml+="<th>"+rs.getString ("idarti")+"<br>"+rs.getString ("describeinsumo") + " "+rs.getString ("cantidad")+ "<br>"+"<img src=\"http://"+variables_global.getHost()+"/javaweb/laser/patrones/"+rs.getString("idarti")+".JPG\" width=230 height=190 border=0 alt=\"Foto Articulo\" />"+"</th>";
                    if (fila>=4)
                        {
                            textohtml+= "</tr>";
                            fila=0;
                        }
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
        this.jtf_materialusado.setText(miformat.format(totalusado)+"="+miformat.format(totalusado/100)+" MTS");
        this.jepn_fotos.setText("<html><head></head><body><table>"+textohtml+"</table></body></html>");
    }


private String  fechaeuropea(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }
private String DiaSemana(String fe) {
         String dia = "";
       java.util.Date fecha=null;
         try
            {
             fecha = formateador.parse(fe);

           }
        catch (ParseException e)
            {
            //Error, la cadena de texto no se puede convertir en fecha.
            }
        Calendar cal= Calendar.getInstance();
        cal.setTime(fecha);
        //ojo para establecer o recetear cada parte de la fecha por separado
        //cal.set(Calendar.YEAR, fecha.getYear());
        //cal.set(Calendar.MONTH, fecha.getMonth());
        //cal.set(Calendar.DAY_OF_MONTH, fecha.getDay());
        int diaInt = cal.get(Calendar.DAY_OF_WEEK);
        switch (diaInt) {
            case 1:
                dia = "Domingo";
                break;
            case 2:
                dia = "Lunes";
                break;
            case 3:
                dia = "Martes";
                break;
            case 4:
                dia = "Miercoles";
                break;
            case 5:
                dia = "Jueves";
                break;
            case 6:
                dia = "Viernes";
                break;
            case 7:
                dia = "Sabado";
                break;

        }
        return dia;
    }

private void imprimir(int pag,float ptotal,int folio)
    {

     //java.util.Date fechahoya=new Date();

     this.objimpresora=new laser_entradas_imprimir();

     this.objimpresora.setOneItem_cadenas_a_imprimir("Maquila Insumos");
     //this.objimpresora.setOneItem_cadenas_a_imprimir("Fecha:"+this.+"");
     this.objimpresora.setOneItem_cadenas_a_imprimir("Fecha:"+this.jtf_fecha.getText());
     this.objimpresora.setOneItem_cadenas_a_imprimir("Folio:"+this.jtf_folio.getText()+"");
     this.objimpresora.setOneItem_cadenas_a_imprimir("Status Documento:"+this.jtf_status.getText()+"");
     this.objimpresora.setOneItem_cadenas_a_imprimir("Cliente o Tienda:"+this.jtf_cliente.getText()+"");

     this.objimpresora.setOneItem_cadenas_a_imprimir("Observaciones:"+this.jtf_observaciones.getText()+"");
     this.objimpresora.setOneItem_cadenas_a_imprimir("*");
     this.objimpresora.setOneItem_cadenas_a_imprimir("paginas:"+ pag + " de "+ptotal+"");
     this.objimpresora.setOneItem_cadenas_a_imprimir("Piezas:"+this.jtf_piezastotal.getText());
        this.objimpresora.setOneItem_cadenas_a_imprimir("Importe:$"+this.jtf_costototal.getText());
        this.objimpresora.setOneItem_cadenas_a_imprimir("Tiempo Minutos:"+this.jtf_cantidad.getText());
     this.objimpresora.setOneItem_cadenas_a_imprimir("Responsalbe Produccion: ______________");
     this.objimpresora.setOneItem_cadenas_a_imprimir("Empaco: ______________");
     this.objimpresora.setOneItem_cadenas_a_imprimir("Recibio: ______________");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("..");
     this.objimpresora.setOneItem_cadenas_a_imprimir("*");
     this.objimpresora.setObjeto_tabla(jtb_insumos);
     this.objimpresora.imprimir_all(2,pag);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jtf_fecha = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jtf_fechaentrega = new javax.swing.JTextField();
        jtf_observaciones = new javax.swing.JTextField();
        jtf_tipomaquila = new javax.swing.JTextField();
        jtf_folio = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jtf_status = new javax.swing.JTextField();
        jcb_verfotos = new javax.swing.JCheckBox();
        jLabel5 = new javax.swing.JLabel();
        jtf_cliente = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jbtn_guardar = new javax.swing.JButton();
        jbtn_salir = new javax.swing.JButton();
        jbtn_helpayudame = new javax.swing.JButton();
        jbtn_imprimir = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jpn_cuerpo = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtb_insumos = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jtf_cantidad = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jtf_costototal = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jtf_piezastotal = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jtf_materialusado = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jtb_detalleexporta = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jPanel4 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jepn_fotos = new javax.swing.JEditorPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jmni_salir = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jmni_escape = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(laser_entradas_detalle.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel1.border.title"))); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jtf_fecha.setEditable(false);
        jtf_fecha.setName("jtf_fecha"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jtf_fechaentrega.setEditable(false);
        jtf_fechaentrega.setName("jtf_fechaentrega"); // NOI18N

        jtf_observaciones.setEditable(false);
        jtf_observaciones.setName("jtf_observaciones"); // NOI18N

        jtf_tipomaquila.setEditable(false);
        jtf_tipomaquila.setName("jtf_tipomaquila"); // NOI18N

        jtf_folio.setEditable(false);
        jtf_folio.setName("jtf_folio"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jtf_status.setEditable(false);
        jtf_status.setName("jtf_status"); // NOI18N

        jcb_verfotos.setText(resourceMap.getString("jcb_verfotos.text")); // NOI18N
        jcb_verfotos.setToolTipText(resourceMap.getString("jcb_verfotos.toolTipText")); // NOI18N
        jcb_verfotos.setName("jcb_verfotos"); // NOI18N
        jcb_verfotos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcb_verfotosActionPerformed(evt);
            }
        });

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jtf_cliente.setEditable(false);
        jtf_cliente.setName("jtf_cliente"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtf_status))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jLabel6)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jtf_tipomaquila, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(61, 61, 61)
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtf_folio, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtf_cliente, javax.swing.GroupLayout.DEFAULT_SIZE, 334, Short.MAX_VALUE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtf_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel7)
                                .addGap(18, 18, 18)
                                .addComponent(jtf_fechaentrega, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_observaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 552, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jcb_verfotos)
                .addGap(206, 206, 206))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(jtf_status, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1)
                            .addComponent(jtf_folio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5)
                            .addComponent(jtf_cliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(jtf_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_fechaentrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7)
                            .addComponent(jLabel6)
                            .addComponent(jtf_tipomaquila, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(jtf_observaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addComponent(jcb_verfotos)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel2.setName("jPanel2"); // NOI18N

        jbtn_guardar.setIcon(resourceMap.getIcon("jbtn_guardar.icon")); // NOI18N
        jbtn_guardar.setText(resourceMap.getString("jbtn_guardar.text")); // NOI18N
        jbtn_guardar.setName("jbtn_guardar"); // NOI18N
        jbtn_guardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_guardarActionPerformed(evt);
            }
        });

        jbtn_salir.setIcon(resourceMap.getIcon("jbtn_salir.icon")); // NOI18N
        jbtn_salir.setText(resourceMap.getString("jbtn_salir.text")); // NOI18N
        jbtn_salir.setName("jbtn_salir"); // NOI18N
        jbtn_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_salirActionPerformed(evt);
            }
        });

        jbtn_helpayudame.setIcon(resourceMap.getIcon("jbtn_helpayudame.icon")); // NOI18N
        jbtn_helpayudame.setText(resourceMap.getString("jbtn_helpayudame.text")); // NOI18N
        jbtn_helpayudame.setName("jbtn_helpayudame"); // NOI18N
        jbtn_helpayudame.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_helpayudameActionPerformed(evt);
            }
        });

        jbtn_imprimir.setIcon(resourceMap.getIcon("jbtn_imprimir.icon")); // NOI18N
        jbtn_imprimir.setText(resourceMap.getString("jbtn_imprimir.text")); // NOI18N
        jbtn_imprimir.setName("jbtn_imprimir"); // NOI18N
        jbtn_imprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_imprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(136, 136, 136)
                .addComponent(jbtn_imprimir)
                .addGap(44, 44, 44)
                .addComponent(jbtn_salir)
                .addGap(110, 110, 110)
                .addComponent(jbtn_helpayudame)
                .addContainerGap(513, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jbtn_guardar)
                    .addContainerGap(933, Short.MAX_VALUE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jbtn_salir)
                .addComponent(jbtn_helpayudame)
                .addComponent(jbtn_imprimir))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(2, 2, 2)
                    .addComponent(jbtn_guardar)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N

        jpn_cuerpo.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        jpn_cuerpo.setName("jpn_cuerpo"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jtb_insumos.setModel(this.jtable_modelo);
        jtb_insumos.setName("jtb_insumos"); // NOI18N
        jtb_insumos.setRowHeight(22);
        jScrollPane1.setViewportView(jtb_insumos);

        jtf_cantidad.setEditable(false);
        jtf_cantidad.setFont(resourceMap.getFont("jtf_cantidad.font")); // NOI18N
        jtf_cantidad.setText(resourceMap.getString("jtf_cantidad.text")); // NOI18N
        jtf_cantidad.setName("jtf_cantidad"); // NOI18N

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        jtf_costototal.setEditable(false);
        jtf_costototal.setFont(resourceMap.getFont("jtf_costototal.font")); // NOI18N
        jtf_costototal.setText(resourceMap.getString("jtf_costototal.text")); // NOI18N
        jtf_costototal.setName("jtf_costototal"); // NOI18N

        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        jtf_piezastotal.setEditable(false);
        jtf_piezastotal.setFont(resourceMap.getFont("jtf_piezastotal.font")); // NOI18N
        jtf_piezastotal.setText(resourceMap.getString("jtf_piezastotal.text")); // NOI18N
        jtf_piezastotal.setName("jtf_piezastotal"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N

        jtf_materialusado.setEditable(false);
        jtf_materialusado.setText(resourceMap.getString("jtf_materialusado.text")); // NOI18N
        jtf_materialusado.setName("jtf_materialusado"); // NOI18N

        javax.swing.GroupLayout jpn_cuerpoLayout = new javax.swing.GroupLayout(jpn_cuerpo);
        jpn_cuerpo.setLayout(jpn_cuerpoLayout);
        jpn_cuerpoLayout.setHorizontalGroup(
            jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpn_cuerpoLayout.createSequentialGroup()
                .addGroup(jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1049, Short.MAX_VALUE)
                    .addGroup(jpn_cuerpoLayout.createSequentialGroup()
                        .addGap(267, 267, 267)
                        .addComponent(jLabel3)
                        .addGap(18, 18, 18)
                        .addComponent(jtf_cantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_costototal, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_piezastotal, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_materialusado, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jpn_cuerpoLayout.setVerticalGroup(
            jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpn_cuerpoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_cantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9)
                    .addComponent(jtf_costototal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(jtf_piezastotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel11)
                    .addComponent(jtf_materialusado, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        jTabbedPane1.addTab(resourceMap.getString("jpn_cuerpo.TabConstraints.tabTitle"), jpn_cuerpo); // NOI18N

        jPanel3.setName("jPanel3"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jtb_detalleexporta.setModel(this.jtable_modelo_exportacion);
        jtb_detalleexporta.setName("jtb_detalleexporta"); // NOI18N
        jtb_detalleexporta.setRowHeight(22);
        jScrollPane2.setViewportView(jtb_detalleexporta);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1061, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(6, 6, 6)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1049, Short.MAX_VALUE)
                    .addGap(6, 6, 6)))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 406, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(19, 19, 19)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)
                    .addGap(20, 20, 20)))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel3.TabConstraints.tabTitle"), jPanel3); // NOI18N

        jPanel4.setName("jPanel4"); // NOI18N

        jScrollPane5.setName("jScrollPane5"); // NOI18N

        jepn_fotos.setContentType(resourceMap.getString("jepn_fotos.contentType")); // NOI18N
        jepn_fotos.setName("jepn_fotos"); // NOI18N
        jScrollPane5.setViewportView(jepn_fotos);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 1051, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel4.TabConstraints.tabTitle"), jPanel4); // NOI18N

        jMenuBar1.setName("jMenuBar1"); // NOI18N

        jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
        jMenu1.setName("jMenu1"); // NOI18N

        jmni_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
        jmni_salir.setIcon(resourceMap.getIcon("jmni_salir.icon")); // NOI18N
        jmni_salir.setText(resourceMap.getString("jmni_salir.text")); // NOI18N
        jmni_salir.setName("jmni_salir"); // NOI18N
        jmni_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_salirActionPerformed(evt);
            }
        });
        jMenu1.add(jmni_salir);

        jMenuBar1.add(jMenu1);

        jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
        jMenu2.setName("jMenu2"); // NOI18N

        jmni_escape.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
        jmni_escape.setText(resourceMap.getString("jmni_escape.text")); // NOI18N
        jmni_escape.setName("jmni_escape"); // NOI18N
        jmni_escape.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_escapeActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_escape);

        jMenuBar1.add(jMenu2);

        jMenu3.setText(resourceMap.getString("jMenu3.text")); // NOI18N
        jMenu3.setName("jMenu3"); // NOI18N
        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmni_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salirActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0) {
            this.dispose();
         }
        
    }//GEN-LAST:event_jmni_salirActionPerformed

    private void jmni_escapeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_escapeActionPerformed
        // TODO add your handling code here:
        this.jmni_salirActionPerformed(evt);
    }//GEN-LAST:event_jmni_escapeActionPerformed

    private void jcb_verfotosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcb_verfotosActionPerformed
        // TODO add your handling code here:
        if(this.jcb_verfotos.isSelected()==true) {
            //this.verfotosestereporte();
        } else {
            //this.quitarfotosestereporte();
        }
}//GEN-LAST:event_jcb_verfotosActionPerformed

    private void jbtn_guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardarActionPerformed
        // TODO add your handling code here:
        // TODO add your handling code here:


}//GEN-LAST:event_jbtn_guardarActionPerformed

    private void jbtn_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_salirActionPerformed


    this.jmni_salirActionPerformed(evt);
}//GEN-LAST:event_jbtn_salirActionPerformed

    private void jbtn_helpayudameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_helpayudameActionPerformed
        // TODO add your handling code here:
       // this.ayuda();
}//GEN-LAST:event_jbtn_helpayudameActionPerformed

    private void jbtn_imprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_imprimirActionPerformed
        // TODO add your handling code here:
             float filas = this.jtable_modelo.getRowCount() ;
        float paginas = filas /50;
        int ni=0;
        for(ni=0;ni<paginas;ni++)
             {
                 this.imprimir(ni,paginas,Integer.valueOf(this.jtf_folio.getText()));
             }
         
}//GEN-LAST:event_jbtn_imprimirActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new laser_entradas_detalle().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JButton jbtn_guardar;
    private javax.swing.JButton jbtn_helpayudame;
    private javax.swing.JButton jbtn_imprimir;
    private javax.swing.JButton jbtn_salir;
    private javax.swing.JCheckBox jcb_verfotos;
    private javax.swing.JEditorPane jepn_fotos;
    private javax.swing.JMenuItem jmni_escape;
    private javax.swing.JMenuItem jmni_salir;
    private javax.swing.JPanel jpn_cuerpo;
    private javax.swing.JTable jtb_detalleexporta;
    private javax.swing.JTable jtb_insumos;
    private javax.swing.JTextField jtf_cantidad;
    private javax.swing.JTextField jtf_cliente;
    private javax.swing.JTextField jtf_costototal;
    private javax.swing.JTextField jtf_fecha;
    private javax.swing.JTextField jtf_fechaentrega;
    private javax.swing.JTextField jtf_folio;
    private javax.swing.JTextField jtf_materialusado;
    private javax.swing.JTextField jtf_observaciones;
    private javax.swing.JTextField jtf_piezastotal;
    private javax.swing.JTextField jtf_status;
    private javax.swing.JTextField jtf_tipomaquila;
    // End of variables declaration//GEN-END:variables
  private laser_entradas_imprimir objimpresora;
}
